[Zend Framework] How to automatically set and atribute to controller

Posted by rasouza on Stack Overflow See other posts from Stack Overflow or by rasouza
Published on 2010-05-10T03:56:06Z Indexed on 2010/05/10 3:58 UTC
Read the original article Hit count: 239

Filed under:
|
|
|
|

Maybe the question is not self-explanatory, so I will explain it through.

The deal is: I got the variable $conn in the bootstrap class file. I'd like to make it global for every controller so that I just have to call $this->conn in the controller action scope in order to access the data inside. How would I do it?

Thx

© Stack Overflow or respective owner

Related posts about zend

Related posts about framework